package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import static org.jsola.hr.example.AttendanceSallaryTemplateExample.E_COMPANY_ID;
import static org.jsola.hr.example.AttendanceSallaryTemplateExample.E_MONTH;
import static org.jsola.hr.example.AttendanceSallaryTemplateExample.E_TEMPLATE_NAME;
import static org.jsola.hr.example.AttendanceSallaryTemplateExample.E_YEAR;
import static org.jsola.hr.example.AttendanceSallaryTemplateExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.AttendanceSallaryTemplateExample.M_TEMPLATE_NAME_MAX;
import static org.jsola.hr.example.AttendanceSallaryTemplateExample.N_COMPANY_ID;
import static org.jsola.hr.example.AttendanceSallaryTemplateExample.N_MONTH;
import static org.jsola.hr.example.AttendanceSallaryTemplateExample.N_TEMPLATE_NAME;
import static org.jsola.hr.example.AttendanceSallaryTemplateExample.N_YEAR;

/**
 * 考勤工资模板表
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【考勤工资模板表】的参数")
@Data
public class AttendanceSallaryTemplateAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID)
    @Length(max = 50, message = M_COMPANY_ID_MAX)
    private String companyId;

    @ApiModelProperty(notes = N_TEMPLATE_NAME, example = E_TEMPLATE_NAME)
    @Length(max = 120, message = M_TEMPLATE_NAME_MAX)
    private String templateName;

    @ApiModelProperty(notes = N_YEAR, example = E_YEAR)
    private Integer year;

    @ApiModelProperty(notes = N_MONTH, example = E_MONTH)
    private Integer month;


}

